<!DOCTYPE html>
<!-- saved from url=(0052)http://getbootstrap.com/docs/4.0/examples/dashboard/ -->
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns="http://www.w3.org/1999/html">

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
	<meta name="description" content="">
	<meta name="author" content="">

	<title>Dashboard Template for Bootstrap</title>
	<!-- Bootstrap core CSS -->
	<link href="asserts/css/bootstrap.min.css" th:href="@{/webjars/bootstrap/4.0.0/css/bootstrap.css}" rel="stylesheet">

	<!-- Custom styles for this template -->
	<link href="asserts/css/dashboard.css" th:href="@{/asserts/css/dashboard.css}" rel="stylesheet">
	<style type="text/css">
		/* Chart.js */

		@-webkit-keyframes chartjs-render-animation {
			from {
				opacity: 0.99
			}
			to {
				opacity: 1
			}
		}

		@keyframes chartjs-render-animation {
			from {
				opacity: 0.99
			}
			to {
				opacity: 1
			}
		}

		.chartjs-render-monitor {
			-webkit-animation: chartjs-render-animation 0.001s;
			animation: chartjs-render-animation 0.001s;
		}
	</style>
</head>

<body>
<!--引入抽取的topbar-->
<!--模板名：会使用thymeleaf的前后缀配置规则进行解析-->
<div th:replace="commons/bar::topbar"></div>

<div class="container-fluid">
	<div class="row">
		<!--引入侧边栏-->
		<div th:replace="commons/bar::#sidebar(activeUri='/admins')"></div>

		<main role="main" class="col-md-9 ml-sm-auto col-lg-10 pt-3 px-4">
			<h3>管理员列表：</h3>
			<input type="text"  name="username" placeholder="手机/姓名" > 角色：
			<select>
				<option>角色1</option>
				<option>角色2</option></select>
			<input type="button" value="搜索">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			<a class="btn btn-sm btn-success" href="emp" th:href="@{/admins/addadmin}">新增</a>
			</select>
			<div class="table-responsive">



				<table class="table table-striped table-sm">
					<thead>
					<tr>
						<th>序号</th>
						<th>管理员姓名</th>
						<th>登录账号</th>
						<th>角色</th>
						<th>操作</th>
					</tr>
					</thead>
					<tbody>
					<tr th:each="list:${admins}">
						<td th:text="${list.id}"></td>
						<td th:text="${list.userName}"></td>
						<td th:text="${list.name}"></td>
						<td th:text="${list.isSuper}"></td>
						<td>
							<a class="btn btn-sm btn-primary"href="emp" th:href="@{/admins/uppdateadmin/}+${list.id}">编辑</a>
							<a class="btn btn-sm btn-primary"href="emp" th:href="@{/admins/deleteadmin/}+${list.id}">删除</a>
						</td>
					</tr>
					</tbody>
				</table>
			</div>
			</main>
			<form id="deleteEmpForm"  method="post">
				<input type="hidden" name="_method" value="delete"/>
			</form>
	</div>
</div>

<!-- Bootstrap core JavaScript
================================================== -->

</body>
</html>